package com.lu.statistics.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lu.statistics.entity.MtWeddingFile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MtWeddingFileMapper extends BaseMapper<MtWeddingFile> {
    /**
     * 按婚庆id查询婚庆文件列表
     *
     * @param weddingId
     * @return
     */
    List<MtWeddingFile> queryWeddingFilesByWeddingId(@Param("weddingId") Integer weddingId);

    /**
     * 按婚庆id批量删除婚庆文件列
     *
     * @param weddingId
     * @return
     */
    int deleteWeddingByWeddingId(@Param("weddingId") Integer weddingId);
}
